import request from '@/utils/request'

// 匹配卡种
export function match(data) {
  return request({
    url: '/system/interlace/cardBins',
    method: 'post',
    loading: true,
    params: data
  })
}

// 卡bin列表（分页）
export function pageList(query) {
  return request({
    url: '/system/interlace/cardBins/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 修改状态
export function changeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/system/interlace/cardBins/changeStatus',
    method: 'put',
    loading: true,
    data: data
  })
}

// 详细
export function cardDetail(id) {
  return request({
    url: '/system/interlace/cardBins/' + id,
    method: 'get',
    loading: true
  })
}

// 删除
export function remove(id) {
  return request({
    url: '/system/interlace/cardBins/' + id,
    method: 'delete',
    loading: true
  })
}

// 修改
export function edit(data) {
  return request({
    url: '/system/interlace/cardBins',
    method: 'put',
    loading: true,
    data: data
  })
}

